Z Perspective Selectors
A drawing engine may support a z perspective control that determines whether thez
or theinvW
field of a vertex (of typeTQAVGouraud
orTQAVTexture
) is to be used for hidden surface removal. You specify an engine's z perspective control by assigning a value to itskQATag_PerspectiveZ
state variable. The default value of this variable for a drawing engine that supports z perspective iskQAPerspectiveZ_Off
.
#define kQAPerspectiveZ_Off 0 #define kQAPerspectiveZ_On 1Constant descriptions
kQAPerspectiveZ_Off
- The drawing engine performs hidden surface removal using
z
values, as is standard.kQAPerspectiveZ_On
- The drawing engine performs hidden surface removal using
invW
values, which results in perspective-correct hidden surface removal.